home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000200_news@newsmaster….columbia.edu _Tue Aug 19 17:51:23 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
4KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA22823
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 19 Aug 1997 17:51:23 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA28263
for kermit.misc@watsun; Tue, 19 Aug 1997 17:51:22 -0400 (EDT)
Path: news.columbia.edu!panix!howland.erols.net!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!204.97.220.6!earth.superlink.net!not-for-mail
From: TTSG <ttsg@ttsg.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: "shebang" help
Date: Tue, 19 Aug 1997 17:18:08 -0400
Organization: TTSG
Lines: 68
Sender: (PJ_W,>%<GF$ @tucsapt.superlink.net
Message-ID: <33FA0D90.5E4B856@ttsg.com>
References: <33F9CF57.740BF0D6@ttsg.com> <5tckvg$oqd$1@apakabar.cc.columbia.edu>
NNTP-Posting-Host: tucsapt.superlink.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.0 i486)
To: Frank da Cruz <fdc@watsun.cc.columbia.edu>
Xref: news.columbia.edu comp.protocols.kermit.misc:7508
Frank da Cruz wrote:
>
> In article <33F9CF57.740BF0D6@ttsg.com>, TTSG <ttsg@ttsg.com> wrote:
> : I'm trying to create a script that just dials a telephone number and
> : when its done exits (NO, THIS ISNT A PRANK DIALER! I want to set email
> : up that when I receive a message, it'll just dial my phone to let me
> : know I have email)
> :
> : #!/usr/local/bin/kermit
> : set modem type hayes-high-speed ; I have an Accura modem
> : set port /dev/tty16 ; on tty16 (AIX)
> : set speed 2400 ; Arbitrary
> : set parity even ; More Arb
> : set flow xon/xoff ; Ok, so I copied this
> : set modem flow none ; from ckepage.ksc
> : set dial retries 1 ; Allow 10 redials
> : dial 19145551212 ; Call my home phone
> : end ; Lemme out
> :
> : DIAL Failure: DIAL TIMEOUT interval expired.
> :
> Of course, because there is no modem on the other end to answer your call.
>
Right, but it wasn't exiting and it was giving me a big banner and a
few other things..... I happened upon a script that does better :
#!/usr/local/bin/kermit
set quiet on ; Be very very quiet
set dial method tone ; Lots faster
set modem type hayes-high-speed ; Ok, so its 14.4
set port /dev/tty16 ; 2nd to last modem
dial 19145551212 ; Reach out and touch someone
exit ; Lemme out
Ok, so it does what I want. Now I gotta figure out why sendmail isn't
launching it properly. It runs, but exits quickly.
>
> : C-Kermit 6.0.192, 6 Sep 96, for IBM RS/6000 AIX 3.2
> :
> Read about the PDIAL command in manual.
>
> - Frank
Ok, will do, thanks, but now another question.....
I'd like to have the number to dial in a file so I can change it via a
web page. In shell, I could `cat /tmp/waldo` to bring information into
a command, but alas :
dial `cat /tmp/waldo`
doesn't.
Will I need to do something like :
open read /tmp/waldo
read line
close read
dial \m(line)
To get it to do what I want?
Thanks again (And again)
Tuc